package com.spring.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloWorldController {

	@RequestMapping(value="/helloWorld")
	public ModelAndView helloWorld(){
		ModelAndView model = new ModelAndView();
		model.setViewName("login");
		model.addObject("message", "Hello World!");
		return model;
	}
}
